package com.lh0811.forge.pserv.basic.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 系统-业务序号表
 *
 * @author lh0811
 * @email lh0811
 * @date 2024-04-23 09:46:44
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommBizNoCreateParam implements Serializable {
    @NotNull(message = "业务类型未上传")
    @Schema(description = "业务类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private String bizType;
    @Schema(description = "业务类型名称")
    private String bizTypeName;
    @Schema(description = "每次获取多少个序号")
    private Integer step = 1;
    @Schema(description = "前缀")
    private String prefix;
    @Schema(description = "批次")
    private Integer batch = 1;
    @Schema(description = "批次长度")
    private Integer batchLen = 2;
    @Schema(description = "当前序号")
    private Integer currentNum = 0;
    @Schema(description = "序号长度")
    private Integer numLen = 8;
    @Schema(description = "批次或序号长度不足时填充符号")
    private String fillChar = "0";
}
